package com.exartisan.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class Event implements Parcelable {

	private long eventID;
	private int type; //0: su kien | 1: sinh hoat 
	private String eventName;
	private String startDate;
	private String endDate;
	private String thumbUrl;
	private String description;
	private String fbFeedID;
	private String coverUrl;
	private String place;
	private String article;
	private String contactLink;
	
	public Event(){
		
	}
	
	public static final Parcelable.Creator<Event> CREATOR = new Parcelable.Creator<Event>() {
		public Event createFromParcel(Parcel in) {
			return new Event(in);
		}

		public Event[] newArray(int size) {
			return new Event[size];
		}
	};
	
	public Event(long eventID, int type, String eventName, String startDate,
			String endDate, String thumbUrl, String fbFeedID) {
		this.eventID = eventID;
		this.type = type;
		this.eventName = eventName;
		this.startDate = startDate;
		this.endDate = endDate;
		this.thumbUrl = thumbUrl;
		this.fbFeedID = fbFeedID;
	}
	

	public Event(long eventID, int type, String eventName, String startDate,
			String endDate, String thumbUrl, String description, String fbFeedID) {
		this.eventID = eventID;
		this.type = type;
		this.eventName = eventName;
		this.startDate = startDate;
		this.endDate = endDate;
		this.thumbUrl = thumbUrl;
		this.description = description;
		this.fbFeedID = fbFeedID;
	}


	public Event(long eventID, int type, String eventName, String startDate,
			String endDate, String thumbUrl, String description,
			String fbFeedID, String coverUrl, String place, String article,
			String contactLink) {
		this.eventID = eventID;
		this.type = type;
		this.eventName = eventName;
		this.startDate = startDate;
		this.endDate = endDate;
		this.thumbUrl = thumbUrl;
		this.description = description;
		this.fbFeedID = fbFeedID;
		this.coverUrl = coverUrl;
		this.place = place;
		this.article = article;
		this.contactLink = contactLink;
	}
	
	public Event(int eventID2, String eventName2, String dateStart,
			String dateEnd, String imageThumb, String feedID, String eventAddress,
			String eventContent, String coverUrl) {
		this.eventID = eventID2;
		this.eventName = eventName2;
		this.startDate = dateStart;
		this.endDate = dateEnd;
		this.thumbUrl = imageThumb;
		this.fbFeedID = feedID;
		this.place = eventAddress;
		this.article = eventContent;
		this.coverUrl = coverUrl;
	}


	public long getEventID() {
		return eventID;
	}

	public void setEventID(long eventID) {
		this.eventID = eventID;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getEventName() {
		return eventName;
	}

	public void setEventName(String eventName) {
		this.eventName = eventName;
	}

	public String getThumbUrl() {
		return thumbUrl;
	}

	public void setThumbUrl(String thumbUrl) {
		this.thumbUrl = thumbUrl;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getCoverUrl() {
		return coverUrl;
	}

	public void setCoverUrl(String coverUrl) {
		this.coverUrl = coverUrl;
	}

	public String getPlace() {
		return place;
	}

	public void setPlace(String place) {
		this.place = place;
	}

	public String getArticle() {
		return article;
	}

	public void setArticle(String article) {
		this.article = article;
	}

	public String getContactLink() {
		return contactLink;
	}

	public void setContactLink(String contactLink) {
		this.contactLink = contactLink;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public String getFbFeedID() {
		return fbFeedID;
	}

	public void setFbFeedID(String fbFeedID) {
		this.fbFeedID = fbFeedID;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeLong(eventID);
		dest.writeInt(type);
		dest.writeString(article);
		dest.writeString(eventName);
		dest.writeString(startDate);
		dest.writeString(endDate);
		dest.writeString(thumbUrl);
		dest.writeString(description);
		dest.writeString(fbFeedID);
		dest.writeString(coverUrl);
		dest.writeString(place);
		dest.writeString(contactLink);
	}
	
	private Event(Parcel in){
		eventID = in.readLong();
		type = in.readInt();
		article = in.readString();
		eventName = in.readString();
		startDate = in.readString();
		endDate = in.readString();
		thumbUrl = in.readString();
		description = in.readString();
		fbFeedID = in.readString();
		coverUrl = in.readString();
		place = in.readString();
		contactLink = in.readString();
	}


	

}
